package com.wg.web_app.domin;

import com.wg.web_app.dao.table.TableGroup;

public class TableGroupBuilder {
	private Integer groupId;
	private String groupName;
	private String groupDetail;
	
	public TableGroup build() {
		TableGroup group = new TableGroup();
		group.setId(groupId);
		group.setName(groupName);
		group.setDetail(groupDetail);
		return group;
	}
	
	public TableGroupBuilder detail(String groupDetail) {
		this.groupDetail = groupDetail;
		return this;
	}

	public TableGroupBuilder id(int groupId) {
		this.groupId = groupId;
		return this;
	}

	public TableGroupBuilder name(String groupName) {
		this.groupName = groupName;
		return this;
	}
	
}
